package com.ricky.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ricky.hosp.model.order.OrderInfo;
import com.ricky.hosp.vo.order.OrderQueryVo;

import java.util.Map;

public interface OrderService extends IService<OrderInfo> {
    Long saveOrder(String scheduleId, Long patientId);
    // 根据订单id获取订单详情
    OrderInfo getOrder(String orderId);
    // 根据用户id查询用户所有订单信息（带分页）
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);
    /**
     * 订单详情
     * @param orderId
     * @return
     */
    Map<String,Object> show(Long orderId);
    // 取消预约
    Boolean cancelOrder(Long orderId);
    // 就诊通知
    void patientTips();
}
